package com.lyeducation.entities.course.middle;

import com.lyeducation.entities.base.BaseTreeEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/** 用户对视频的评论 */
@Entity
@Table(name = "user_video_comment")
public class UserVideoCommentEntity extends BaseTreeEntity {
  private String comment;
  private String userId;
  private String toId;
  private String videoId;
  private int replySize;

  @Column(name = "userId", nullable = false, length = 18)
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  @Column(name = "toId", nullable = true, length = 18)
  public String getToId() {
    return toId;
  }

  public void setToId(String toId) {
    this.toId = toId;
  }


  @Column(name = "videoId", nullable = false, length = 18)
  public String getVideoId() {
    return videoId;
  }

  public void setVideoId(String videoId) {
    this.videoId = videoId;
  }

  // 点赞总数
  private int score;

  @Column(name = "comment", length = 255)
  public String getComment() {
    return comment;
  }

  public void setComment(String comment) {
    this.comment = comment;
  }

  @Column(name = "score", nullable = false)
  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  public int getReplySize() {
    return replySize;
  }

  public void setReplySize(int replySize) {
    this.replySize = replySize;
  }
}
